package org.tigris.mappedlexer.validator;

/**
 * Different valdiation methods.
 * 
 * @author zhisen.huang
 *
 */
public interface Validator {
	
	/**
	 * Get the next token with the constraints.
	 * 
	 * @param validators the constraints
	 */
	public boolean validate(char chr) throws UnsupportedOperationException;

	/**
	 * Get the next token with the constraints.
	 * 
	 * @param validators the constraints
	 */
	public boolean validate(String str) throws UnsupportedOperationException;

	/**
	 * Get the next token with the constraints.
	 * 
	 * @param validators the constraints
	 */
	public boolean validate(double number) throws UnsupportedOperationException;
}
